package homework.day319.demo1;

public class Dog extends Animal {
    private String colour;

    public void call(){
        System.out.println("汪汪汪汪");
    }

    public Dog() {
    }
    public Dog(String name, String colour) {
        super(name);
        this.colour = colour;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    @Override
    public String toString() {
        return "我是"+ super.getName()+"，我的颜色是"+colour;
    }
}
